<?php
/*
|
|--------------------------------------------------------------------------
| 单页数据 公司介绍
|--------------------------------------------------------------------------
|
*/
include 'includes/common.php';
include 'ss-config.php';
//include 'includes/ss-db.php';
include 'includes/functions.php';
include 'includes/share.php';

//包含左栏数据(产品导航 最新文章 联系方式)
include 'includes/leftdata.php';


//客户案例
$query = sprintf('SELECT PAGE_TITLE, PAGE_DESCRIPTION, PAGE_KEYWORDS, PAGE_CONTENT FROM %spages WHERE ID = 2', DB_TBL_PREFIX);

mysql_query("set names 'utf8'");
$result = mysql_query($query, $GLOBALS['DB']) or die(mysql_error($GLOBALS['DB']));

if (mysql_num_rows($result))
{
	$row = mysql_fetch_assoc($result);
	
	//定义个性化元标签
	if ($row['PAGE_TITLE']) 
	{
		$unique_title = $row['PAGE_TITLE'];
	}
	
	if ($row['PAGE_DESCRIPTION']) 
	{
		$unique_description = $row['PAGE_DESCRIPTION'];
	}
	
	if ($row['PAGE_KEYWORDS']) 
	{
		$unique_keywords = $row['PAGE_KEYWORDS'];
	}
	
	//单页内容
   $kehu = $row['PAGE_CONTENT'];
}

mysql_free_result($result);


//调用模板
include 'templates/kehu.php';
?>